﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using FCT551.Base;

namespace FCT551.Models
{
    public class NewWorkStationModel : NotifyPorperChanged
    {
        private int stationtestid;

        /// <summary>
        /// 工位id
        /// </summary>
        public int StationTestId
        {
            set
            {
                stationtestid = value;
                // this.SetProperty();
            }
            get
            {
                return stationtestid;
            }
        }

        private bool stationtestres;

        /// <summary>
        /// 工位测试结果
        /// </summary>
        public bool StationTestRes
        {
            set
            {
                stationtestres = value;
                // this.SetProperty();
            }
            get
            {
                return stationtestres;
            }
        }

        private string stationname;

        /// <summary>
        /// 工位名称
        /// </summary>
        public string Name
        {
            set
            {
                stationname = value;
                this.SetProperty();
            }
            get
            {
                return stationname;
            }
        }

        private string statiocode;

        /// <summary>
        /// 二维码
        /// </summary>
        public string Code
        {
            set
            {
                statiocode = value;
                this.SetProperty();
            }
            get
            {
                return statiocode;
            }
        }

        private string item1name;

        /// <summary>
        /// 测试项1名称
        /// </summary>
        public string Test1
        {
            set
            {
                item1name = value;
                this.SetProperty();
            }
            get
            {
                return item1name;
            }
        }

        private string item2name;

        /// <summary>
        /// 测试项2名称
        /// </summary>
        public string Test2
        {
            set
            {
                item2name = value;
                this.SetProperty();
            }
            get
            {
                return item2name;
            }
        }

        private string item3name;

        /// <summary>
        /// 测试项3名称
        /// </summary>
        public string Test3
        {
            set
            {
                item3name = value;
                this.SetProperty();
            }
            get
            {
                return item3name;
            }
        }

        private string item3vaule;

        private string stationres;

        /// <summary>
        /// 测试项结果文字
        /// </summary>
        public string Result
        {
            set
            {
                stationres = value;
                this.SetProperty();
            }
            get
            {
                return stationres;
            }
        }

        private SolidColorBrush stationcolor;

        /// <summary>
        /// 测试项结果颜色
        /// </summary>
        public SolidColorBrush ResultColor
        {
            set
            {
                stationcolor = value;
                this.SetProperty();
            }
            get
            {
                return stationcolor;
            }
        }

        /// <summary>
        /// 是否执行
        /// </summary>
        private bool _isExecute;

        /// <summary>
        /// 是否执行
        /// </summary>
        public bool IsExecute
        {
            set
            {
                _isExecute = value;
                this.SetProperty();
            }
            get
            {
                return _isExecute;
            }
        }
    }
}